/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package strategies;

import entityclasses.Session;
import javax.swing.DefaultListModel;
import entityclasses.Related;

/**
 *
 * @author umutcan
 */
public class RelatedListingStrategy implements IListStrategy {

    public DefaultListModel list() {
        
        DefaultListModel akrabalarListModel = new DefaultListModel();
        
        for (Related r : Session.currentUser.getProfile().getRelateds())
        {
            akrabalarListModel.addElement(r);
        }
        
        return akrabalarListModel;
    }
    
}
